package grpc_module

import (
	"context"
	"gitee.com/kmyss/gf-ex/yscmd"
)

type FlagFileBuilder struct {
	yscmd.FlagBuilderCore
}

func (b *FlagFileBuilder) Init(ctx context.Context, group ...string) {
	b.FlagBuilderCore.Init(ctx, group...)
	b.F.Short = ""
	b.F.Long = "file"
	b.F.Description = `
        是否启动文件存储模块
        输入参数是模块管理的目录位置`
	b.F.DefaultValue = "./_data"
}

func FlagFile(ctx context.Context, group ...string) *yscmd.Flag {
	build := &FlagFileBuilder{}
	build.Init(ctx, group...)
	return build.Flag()
}
